package com.binfenhulian.chinaenergy.ces.manage.service.content;

import com.binfenhulian.chinaenergy.ces.core.exception.BaseException;
import com.binfenhulian.chinaenergy.ces.manage.bean.param.ContentParam;
import com.binfenhulian.chinaenergy.ces.manage.bean.param.SessionParam;
import com.fasterxml.jackson.databind.ser.Serializers;
import com.github.pagehelper.PageInfo;

import java.util.Map;

/**
 * Created by wanghjbuf on 2018/3/15.
 */
public interface ContentService {

    /**
     * 查询内容列表
     * @param paramMap
     * @return
     * @throws BaseException
     */
    public PageInfo listContentByPage(Map<String,Object> paramMap) throws BaseException;

    /**
     * 执行编辑
     * @param recordNo
     * @return
     * @throws BaseException
     */
    public ContentParam detailByRecordNo(String recordNo) throws BaseException;

    /**
     * 保存内容
     * @param contentParam
     * @return
     * @throws BaseException
     */
    public int save(ContentParam contentParam, SessionParam sessionParam) throws BaseException;

    /**
     * 内容发布
     * @param recordNo
     * @param sessionParam
     * @throws BaseException
     */
    public void publish(String recordNo, SessionParam sessionParam) throws BaseException;

    /**
     * 新建种子链接
     * @param title
     * @param url
     * @param sessionParam
     * @return
     * @throws BaseException
     */
    public int addSeed(String title, String url, SessionParam sessionParam) throws BaseException;
}
